package com.yuji.aacar.controller.order;

import com.yuji.aacar.bean.beans.Order;
import com.yuji.aacar.bean.beans.QueryCarAddressInfo;
import com.yuji.aacar.bean.response.OrderDetailResponse;

/**
 * <li>Package:com.yuji.aacar.utils</li>
 * <li>Author: lining </li>
 * <li>Date: 2018/4/1</li>
 * <li>Description:   </li>
 */

public class OrderUtils {


    public static Order getOrderFromDefaultCarAddress(QueryCarAddressInfo queryCarAddressInfo){
        return null;
    }


    public static void convertOrderFromOrderDetailResponse(Order order, OrderDetailResponse orderDetailResponse){
        order.setRoomCode(orderDetailResponse.getRoomCode());
        order.setAreaCode(orderDetailResponse.getAreaCode());
        order.setAreaName(orderDetailResponse.getAreaName());
        order.setBrandId(orderDetailResponse.getBrandId());
        order.setBrandName(orderDetailResponse.getBrandName());
        order.setBrandUrl(orderDetailResponse.getBrandUrl());
        order.setCarLibType(orderDetailResponse.getCarLibType());
        order.setCarNo(orderDetailResponse.getCarNo());
        order.setCarType(orderDetailResponse.getCarType());
        order.setCityCode(orderDetailResponse.getCityCode());
        order.setCityName(orderDetailResponse.getCityName());
        order.setDetailAddress(orderDetailResponse.getDetailAddress());
        order.setLinkman(orderDetailResponse.getLinkman());
        order.setPhoneNo(orderDetailResponse.getPhoneNo());
        order.setProductId(orderDetailResponse.getProductId());
        order.setProvinceCode(orderDetailResponse.getProvinceCode());
        order.setProvinceName(orderDetailResponse.getProvinceName());
        order.setRoomCode(orderDetailResponse.getRoomCode());
        order.setRoomName(orderDetailResponse.getRoomName());
        order.setSeriesId(orderDetailResponse.getSeriesId());
        order.setSeriesName(orderDetailResponse.getSeriesName());
        order.setWashType(orderDetailResponse.getWashType());
    }


}
